home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1999 March / EnigmA AMIGA RUN 35 (1999)(G.R. Edizioni)(IT)[!][issue 1999-03].iso / earcd / devel / libx11 / include / x11 / xaw / asciitextp.h < prev    next >
C/C++ Source or Header  |  1999-01-01  |  4KB  |  139 lines

  1. /*
  2.  * $XConsortium: AsciiTextP.h,v 1.15 89/07/17 18:09:37 kit Exp $ 
  3.  */
  4.  
  5. /***********************************************************
  6. Copyright 1987, 1988 by Digital Equipment Corporation, Maynard, Massachusetts,
  7. and the Massachusetts Institute of Technology, Cambridge, Massachusetts.
  8.  
  9.                         All Rights Reserved
  10.  
  11. Permission to use, copy, modify, and distribute this software and its 
  12. documentation for any purpose and without fee is hereby granted, 
  13. provided that the above copyright notice appear in all copies and that
  14. both that copyright notice and this permission notice appear in 
  15. supporting documentation, and that the names of Digital or MIT not be
  16. used in advertising or publicity pertaining to distribution of the
  17. software without specific, written prior permission.  
  18.  
  19. DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
  20. ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
  21. DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
  22. ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
  23. WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
  24. ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
  25. SOFTWARE.
  26.  
  27. ******************************************************************/
  28.  
  29. /***********************************************************************
  30.  *
  31.  * AsciiText Widget
  32.  *
  33.  ***********************************************************************/
  34.  
  35. /*
  36.  * AsciiText.c - Private header file for AsciiText Widget.
  37.  *
  38.  * This Widget is intended to be used as a simple front end to the 
  39.  * text widget with an ascii source and ascii sink attached to it.
  40.  *
  41.  * Date:    June 29, 1989
  42.  *
  43.  * By:      Chris D. Peterson
  44.  *          MIT X Consortium 
  45.  *          kit@expo.lcs.mit.edu
  46.  */
  47.  
  48. #ifndef _AsciiTextP_h
  49. #define _AsciiTextP_h
  50.  
  51. #include <X11/Xaw/TextP.h>
  52. #include <X11/Xaw/AsciiSrc.h> /* no need to get private header. */
  53. #include <X11/Xaw/AsciiText.h>
  54.  
  55. typedef struct {int empty;} AsciiClassPart;
  56.  
  57. typedef struct _AsciiTextClassRec {
  58.     CoreClassPart    core_class;
  59.     SimpleClassPart    simple_class;
  60.     TextClassPart    text_class;
  61.     AsciiClassPart    ascii_class;
  62. } AsciiTextClassRec;
  63.  
  64. extern AsciiTextClassRec asciiTextClassRec;
  65.  
  66. typedef struct { char foo; /* keep compiler happy. */ } AsciiPart;
  67.  
  68. typedef struct _AsciiRec {
  69.     CorePart        core;
  70.     SimplePart        simple;
  71.     TextPart        text;
  72.     AsciiPart           ascii;
  73. } AsciiRec;
  74.  
  75. /************************************************************
  76.  *
  77.  * Ascii String Emulation widget.
  78.  *
  79.  ************************************************************/ 
  80.  
  81. #ifdef ASCII_STRING
  82.  
  83. typedef struct {int empty;} AsciiStringClassPart;
  84.  
  85. typedef struct _AsciiStringClassRec {
  86.     CoreClassPart    core_class;
  87.     SimpleClassPart    simple_class;
  88.     TextClassPart    text_class;
  89.     AsciiClassPart    ascii_class;
  90.     AsciiStringClassPart string_class;
  91. } AsciiStringClassRec;
  92.  
  93. extern AsciiStringClassRec asciiStringClassRec;
  94.  
  95. typedef struct { char foo; /* keep compiler happy. */ } AsciiStringPart;
  96.  
  97. typedef struct _AsciiStringRec {
  98.     CorePart        core;
  99.     SimplePart        simple;
  100.     TextPart        text;
  101.     AsciiPart           ascii;
  102.     AsciiStringPart     ascii_str;
  103. } AsciiStringRec;
  104.  
  105. #endif /* ASCII_STRING */
  106.  
  107. #ifdef ASCII_DISK
  108.  
  109. /************************************************************
  110.  *
  111.  * Ascii Disk Emulation widget.
  112.  *
  113.  ************************************************************/ 
  114.  
  115. typedef struct {int empty;} AsciiDiskClassPart;
  116.  
  117. typedef struct _AsciiDiskClassRec {
  118.     CoreClassPart    core_class;
  119.     SimpleClassPart    simple_class;
  120.     TextClassPart    text_class;
  121.     AsciiClassPart    ascii_class;
  122.     AsciiDiskClassPart    disk_class;
  123. } AsciiDiskClassRec;
  124.  
  125. extern AsciiDiskClassRec asciiDiskClassRec;
  126.  
  127. typedef struct { char foo; /* keep compiler happy. */ } AsciiDiskPart;
  128.  
  129. typedef struct _AsciiDiskRec {
  130.     CorePart        core;
  131.     SimplePart        simple;
  132.     TextPart        text;
  133.     AsciiPart           ascii;
  134.     AsciiDiskPart       ascii_disk;
  135. } AsciiDiskRec;
  136. #endif /* ASCII_DISK */
  137.  
  138. #endif /* _AsciiTextP_h */
  139.